'''
first i named this file shelve.py when import shelve that occupy the standard library
so rename my file as shelvemodul.py 
print(sys.path)

kepp the data in file  for other obj use
'''

import shelve

#print(shelve.__file__)

#open file as a stream
f_write = shelve.open(r'shelve.txt')


#keep data in stream
#f_write['info']={"name":"fuml","age":"15"}

#read data from stream
#data = f_write.get('info')
data = f_write['info']
print(data)


print(f_write.get('info')['age'])

#print(f_write.get('gender','male'))

f_write.close()